﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1FlexGrid;
    using C1.Win.C1FlexGrid.Util.BaseControls;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_SoSuaChua : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvKhachHang")]
        private ADVObjects _AdvKhachHang;
        [AccessedThroughProperty("CboTinhTrang")]
        private ComboBox _CboTinhTrang;
        [AccessedThroughProperty("CKTuNgay")]
        private CheckBox _CKTuNgay;
        [AccessedThroughProperty("CmdAdd")]
        private Button _CmdAdd;
        [AccessedThroughProperty("CmdBanGiao")]
        private Button _CmdBanGiao;
        [AccessedThroughProperty("CmdKiemTra")]
        private Button _CmdKiemTra;
        [AccessedThroughProperty("CmdPrint")]
        private Button _CmdPrint;
        [AccessedThroughProperty("CmdRefesh")]
        private Button _CmdRefesh;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label19")]
        private Label _Label19;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("Panel2")]
        private Panel _Panel2;
        [AccessedThroughProperty("TxtDenNgay")]
        private DateTimePicker _TxtDenNgay;
        [AccessedThroughProperty("TxtTuNgay")]
        private DateTimePicker _TxtTuNgay;
        [AccessedThroughProperty("VSlist")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSlist;
        private IContainer components;
        private bool IsLoaded;
        private DataTable objData;
        private clsSuaChuaThietBi objTN;

        public Frm_SoSuaChua()
        {
            base.Load += new EventHandler(this.Frm_SoSuaChua_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.IsLoaded = false;
            this.objTN = new clsSuaChuaThietBi();
            this.InitializeComponent();
        }

        private void CboTinhTrang_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.LoadData();
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            MyProject.Forms.Frm_TiepNhanThietBi.Dispose();
            MyProject.Forms.Frm_TiepNhanThietBi.Show();
        }

        private void CmdBanGiao_Click(object sender, EventArgs e)
        {
            if (this.VSlist.Rows.Count != 1)
            {
                string pKhoa = Conversions.ToString(this.VSlist[this.VSlist.Row, 0]);
                this.objTN.Load(pKhoa);
                if (this.objTN.NgayTraHang.Trim() != "")
                {
                    MyProject.Forms.Frm_BanGiaoSuaChua.Dispose();
                    MyProject.Forms.Frm_BanGiaoSuaChua.cfrmKhoaTiepNhan = pKhoa;
                    MyProject.Forms.Frm_BanGiaoSuaChua.Show();
                }
                else
                {
                    MyProject.Forms.Frm_BanGiaoSuaChua.Dispose();
                    MyProject.Forms.Frm_BanGiaoSuaChua.Show();
                    MyProject.Forms.Frm_BanGiaoSuaChua.AddNew();
                    MyProject.Forms.Frm_BanGiaoSuaChua.InsertTiepNhanThietBi(pKhoa);
                }
            }
        }

        private void CmdKiemTra_Click(object sender, EventArgs e)
        {
            if (this.VSlist.Rows.Count != 1)
            {
                string pKhoa = Conversions.ToString(this.VSlist[this.VSlist.Row, 0]);
                this.objTN.Load(pKhoa);
                if (this.objTN.NgayKiemTra.Trim() != "")
                {
                    MyProject.Forms.Frm_KiemTraThietBi.Dispose();
                    MyProject.Forms.Frm_KiemTraThietBi.cfrmKhoaTiepNhan = pKhoa;
                    MyProject.Forms.Frm_KiemTraThietBi.Show();
                }
                else
                {
                    MyProject.Forms.Frm_KiemTraThietBi.Dispose();
                    MyProject.Forms.Frm_KiemTraThietBi.Show();
                    MyProject.Forms.Frm_KiemTraThietBi.AddNew();
                    MyProject.Forms.Frm_KiemTraThietBi.InsertTiepNhanThietBi(pKhoa);
                }
            }
        }

        private void CmdPrint_Click(object sender, EventArgs e)
        {
            if (this.VSlist.Rows.Count != 1)
            {
                string strKhoa = Conversions.ToString(this.VSlist[this.VSlist.Row, 0]);
                this.PrintReport(strKhoa);
            }
        }

        private void CmdRefesh_Click(object sender, EventArgs e)
        {
            this.LoadData();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        private void Frm_SoSuaChua_Load(object sender, EventArgs e)
        {
            int num = DateAndTime.Month(DateAndTime.Today);
            int num2 = DateAndTime.Year(DateAndTime.Today);
            if (num == 1)
            {
                num = 12;
                num2--;
            }
            else
            {
                num--;
            }
            this.TxtTuNgay.Text = "01/" + LVYModule.sRight("00" + Conversions.ToString(num), 2) + "/" + Conversions.ToString(DateAndTime.Year(DateAndTime.Today));
            this.TxtDenNgay.Text = Strings.Format(DateAndTime.Today, "dd/MM/yyyy");
            this.CboTinhTrang.Items.Clear();
            this.CboTinhTrang.Items.Add(modGeneral.Tranlated("Tất cả", ""));
            this.CboTinhTrang.Items.Add(modGeneral.Tranlated("Đang sửa chữa", ""));
            this.CboTinhTrang.Items.Add(modGeneral.Tranlated("Đ\x00e3 b\x00e0n giao cho kh\x00e1ch", ""));
            this.CboTinhTrang.SelectedIndex = 1;
            C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
            Hashtable hashtable = new Hashtable();
            hashtable.Add("0", modGeneral.Tranlated("Bảo h\x00e0nh sản phẩm", ""));
            hashtable.Add("1", modGeneral.Tranlated("Sửa chữa thu ph\x00ed", ""));
            vSlist.Cols[8].DataMap = hashtable;
            vSlist = null;
            this.IsLoaded = true;
            this.LoadData();
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_SoSuaChua));
            this.Panel1 = new Panel();
            this.Label19 = new Label();
            this.CboTinhTrang = new ComboBox();
            this.CKTuNgay = new CheckBox();
            this.Label5 = new Label();
            this.Label1 = new Label();
            this.TxtDenNgay = new DateTimePicker();
            this.TxtTuNgay = new DateTimePicker();
            this.Panel2 = new Panel();
            this.VSlist = new C1.Win.C1FlexGrid.C1FlexGrid();
            this.CmdRefesh = new Button();
            this.CmdAdd = new Button();
            this.CmdKiemTra = new Button();
            this.CmdBanGiao = new Button();
            this.CmdPrint = new Button();
            this.AdvKhachHang = new ADVObjects();
            this.Panel1.SuspendLayout();
            this.Panel2.SuspendLayout();
            this.VSlist.BeginInit();
            this.SuspendLayout();
            this.Panel1.BackgroundImage = ACCOUNTING.My.Resources.Resources.bgleft;
            this.Panel1.Controls.Add(this.CmdRefesh);
            this.Panel1.Controls.Add(this.Label19);
            this.Panel1.Controls.Add(this.CboTinhTrang);
            this.Panel1.Controls.Add(this.CKTuNgay);
            this.Panel1.Controls.Add(this.AdvKhachHang);
            this.Panel1.Controls.Add(this.Label5);
            this.Panel1.Controls.Add(this.Label1);
            this.Panel1.Controls.Add(this.TxtDenNgay);
            this.Panel1.Controls.Add(this.TxtTuNgay);
            this.Panel1.Dock = DockStyle.Top;
            Point point = new Point(0, 0);
            this.Panel1.Location = point;
            this.Panel1.Name = "Panel1";
            Size size = new Size(890, 0x2c);
            this.Panel1.Size = size;
            this.Panel1.TabIndex = 0;
            this.Label19.AutoSize = true;
            this.Label19.BackColor = Color.Transparent;
            point = new Point(0x1d2, 3);
            this.Label19.Location = point;
            this.Label19.Name = "Label19";
            size = new Size(0x37, 13);
            this.Label19.Size = size;
            this.Label19.TabIndex = 0x4b;
            this.Label19.Text = "T\x00ecnh trạng";
            this.CboTinhTrang.FormattingEnabled = true;
            this.CboTinhTrang.Items.AddRange(new object[] { "Tất cả", "Đang sửa chữa", "Đ\x00e3 b\x00e0n giao" });
            point = new Point(0x1d3, 0x13);
            this.CboTinhTrang.Location = point;
            this.CboTinhTrang.Name = "CboTinhTrang";
            size = new Size(0xeb, 0x15);
            this.CboTinhTrang.Size = size;
            this.CboTinhTrang.TabIndex = 0x4a;
            this.CKTuNgay.AutoSize = true;
            this.CKTuNgay.BackColor = Color.Transparent;
            point = new Point(5, 2);
            this.CKTuNgay.Location = point;
            this.CKTuNgay.Name = "CKTuNgay";
            size = new Size(0x41, 0x11);
            this.CKTuNgay.Size = size;
            this.CKTuNgay.TabIndex = 0x49;
            this.CKTuNgay.Text = "Từ ng\x00e0y";
            this.CKTuNgay.UseVisualStyleBackColor = false;
            this.Label5.AutoSize = true;
            this.Label5.BackColor = Color.Transparent;
            point = new Point(0xb5, 2);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(0x41, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 0x47;
            this.Label5.Text = "Kh\x00e1ch h\x00e0ng";
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(0x59, 2);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x35, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 70;
            this.Label1.Text = "Đến n&g\x00e0y";
            this.TxtDenNgay.Format = DateTimePickerFormat.Custom;
            point = new Point(0x5e, 0x13);
            this.TxtDenNgay.Location = point;
            this.TxtDenNgay.Name = "TxtDenNgay";
            size = new Size(0x55, 20);
            this.TxtDenNgay.Size = size;
            this.TxtDenNgay.TabIndex = 0x45;
            this.TxtTuNgay.Format = DateTimePickerFormat.Custom;
            point = new Point(5, 0x13);
            this.TxtTuNgay.Location = point;
            this.TxtTuNgay.Name = "TxtTuNgay";
            size = new Size(0x55, 20);
            this.TxtTuNgay.Size = size;
            this.TxtTuNgay.TabIndex = 0x43;
            this.Panel2.Controls.Add(this.CmdPrint);
            this.Panel2.Controls.Add(this.CmdBanGiao);
            this.Panel2.Controls.Add(this.CmdKiemTra);
            this.Panel2.Controls.Add(this.CmdAdd);
            this.Panel2.Dock = DockStyle.Bottom;
            point = new Point(0, 0x219);
            this.Panel2.Location = point;
            this.Panel2.Name = "Panel2";
            size = new Size(890, 0x1d);
            this.Panel2.Size = size;
            this.Panel2.TabIndex = 1;
            this.VSlist.AllowEditing = false;
            this.VSlist.BorderStyle = C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.XpThemes;
            this.VSlist.ColumnInfo = manager.GetString("VSlist.ColumnInfo");
            this.VSlist.Dock = DockStyle.Fill;
            this.VSlist.ExtendLastCol = true;
            this.VSlist.FocusRect = FocusRectEnum.None;
            this.VSlist.KeyActionEnter = KeyActionEnum.MoveAcross;
            point = new Point(0, 0x2c);
            this.VSlist.Location = point;
            this.VSlist.Name = "VSlist";
            this.VSlist.Rows.Count = 1;
            this.VSlist.Rows.DefaultSize = 0x11;
            this.VSlist.SelectionMode = SelectionModeEnum.Row;
            size = new Size(890, 0x1ed);
            this.VSlist.Size = size;
            this.VSlist.StyleInfo = manager.GetString("VSlist.StyleInfo");
            this.VSlist.TabIndex = 0x77;
            this.CmdRefesh.Image = (Image) manager.GetObject("CmdRefesh.Image");
            point = new Point(0x2be, 0x12);
            this.CmdRefesh.Location = point;
            this.CmdRefesh.Name = "CmdRefesh";
            size = new Size(0x1a, 0x17);
            this.CmdRefesh.Size = size;
            this.CmdRefesh.TabIndex = 0x4c;
            this.CmdRefesh.UseVisualStyleBackColor = true;
            point = new Point(5, 3);
            this.CmdAdd.Location = point;
            this.CmdAdd.Name = "CmdAdd";
            size = new Size(0x5f, 0x18);
            this.CmdAdd.Size = size;
            this.CmdAdd.TabIndex = 0;
            this.CmdAdd.Text = "Tiếp nhận mới";
            this.CmdAdd.UseVisualStyleBackColor = true;
            point = new Point(0x6a, 3);
            this.CmdKiemTra.Location = point;
            this.CmdKiemTra.Name = "CmdKiemTra";
            size = new Size(0x5f, 0x18);
            this.CmdKiemTra.Size = size;
            this.CmdKiemTra.TabIndex = 1;
            this.CmdKiemTra.Text = "Kiểm tra";
            this.CmdKiemTra.UseVisualStyleBackColor = true;
            point = new Point(0xce, 3);
            this.CmdBanGiao.Location = point;
            this.CmdBanGiao.Name = "CmdBanGiao";
            size = new Size(0x5f, 0x18);
            this.CmdBanGiao.Size = size;
            this.CmdBanGiao.TabIndex = 2;
            this.CmdBanGiao.Text = "B\x00e0n giao";
            this.CmdBanGiao.UseVisualStyleBackColor = true;
            point = new Point(0x133, 3);
            this.CmdPrint.Location = point;
            this.CmdPrint.Name = "CmdPrint";
            size = new Size(0x5f, 0x18);
            this.CmdPrint.Size = size;
            this.CmdPrint.TabIndex = 3;
            this.CmdPrint.Text = "In bi\x00ean bản";
            this.CmdPrint.UseVisualStyleBackColor = true;
            this.AdvKhachHang.LoaiDoiTuong = modGeneral.TypeObjects.KhachHang;
            point = new Point(0xb7, 0x13);
            this.AdvKhachHang.Location = point;
            this.AdvKhachHang.Name = "AdvKhachHang";
            this.AdvKhachHang.ReadOnly = false;
            size = new Size(0x116, 20);
            this.AdvKhachHang.Size = size;
            this.AdvKhachHang.TabIndex = 0x48;
            this.AdvKhachHang.UpperText = true;
            this.AdvKhachHang.Value = "";
            this.AdvKhachHang.WidthCode = 80;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            size = new Size(890, 0x236);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.VSlist);
            this.Controls.Add(this.Panel2);
            this.Controls.Add(this.Panel1);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_SoSuaChua";
            this.Text = "SO SUA CHUA";
            this.Panel1.ResumeLayout(false);
            this.Panel1.PerformLayout();
            this.Panel2.ResumeLayout(false);
            this.VSlist.EndInit();
            this.ResumeLayout(false);
        }

        public void LoadData()
        {
            if (this.IsLoaded)
            {
                string strCondition = "";
                switch (this.CboTinhTrang.SelectedIndex)
                {
                    case 0:
                        strCondition = " AND 1 = 1 ";
                        break;

                    case 1:
                        strCondition = " AND RTRIM(IsNull(TN.NgayTraHang,'')) = ''";
                        break;

                    case 2:
                        strCondition = " AND RTRIM(IsNull(TN.NgayTraHang,'')) <> ''";
                        break;
                }
                if (this.CKTuNgay.Checked)
                {
                    strCondition = strCondition + " AND (TN.NgayChungTu BETWEEN '" + LVYModule.Date2Char(this.TxtTuNgay.Text) + "' AND '" + LVYModule.Date2Char(this.TxtDenNgay.Text) + "')";
                }
                this.objData = this.objTN.GetSoSuaChua(strCondition);
                C1.Win.C1FlexGrid.C1FlexGrid vSlist = this.VSlist;
                vSlist.Rows.Count = 1;
                int num3 = this.objData.Rows.Count - 1;
                for (int i = 0; i <= num3; i++)
                {
                    vSlist.AddItem("");
                    vSlist[i + 1, 0] = RuntimeHelpers.GetObjectValue(this.objData.Rows[i]["Khoa"]);
                    vSlist[i + 1, 1] = RuntimeHelpers.GetObjectValue(this.objData.Rows[i]["SoChungTu"]);
                    vSlist[i + 1, 2] = RuntimeHelpers.GetObjectValue(this.objData.Rows[i]["Ngay"]);
                    vSlist[i + 1, 3] = RuntimeHelpers.GetObjectValue(this.objData.Rows[i]["MaThietBi"]);
                    vSlist[i + 1, 4] = RuntimeHelpers.GetObjectValue(this.objData.Rows[i]["TenThietBi"]);
                    vSlist[i + 1, 5] = RuntimeHelpers.GetObjectValue(this.objData.Rows[i]["SoSerial"]);
                    vSlist[i + 1, 6] = RuntimeHelpers.GetObjectValue(this.objData.Rows[i]["KhachHang"]);
                    vSlist[i + 1, 7] = RuntimeHelpers.GetObjectValue(this.objData.Rows[i]["TinhTrangBanDau"]);
                    vSlist[i + 1, 8] = this.objData.Rows[i]["LoaiSuaChua"].ToString().Trim();
                    vSlist[i + 1, 9] = RuntimeHelpers.GetObjectValue(this.objData.Rows[i]["XacDinhLoi"]);
                    vSlist[i + 1, 10] = RuntimeHelpers.GetObjectValue(this.objData.Rows[i]["ThongTinXuLy"]);
                    vSlist[i + 1, 11] = RuntimeHelpers.GetObjectValue(this.objData.Rows[i]["NgayTraHang"]);
                }
                vSlist = null;
            }
        }

        public void PrintReport(string strKhoa)
        {
            clsSuaChuaThietBi bi = new clsSuaChuaThietBi();
            if (Form.ActiveForm != null)
            {
                Form.ActiveForm.Cursor = Cursors.WaitCursor;
            }
            bi.Load(strKhoa);
            DataTable dataPrintBienBan = bi.GetDataPrintBienBan(strKhoa);
            DataTable dataPrintDeXuat = bi.GetDataPrintDeXuat(strKhoa);
            if (dataPrintBienBan != null)
            {
                if (dataPrintBienBan.Rows.Count == 0)
                {
                    LVYModule.ShowWarning(modGeneral.Tranlated("Kh\x00f4ng c\x00f3 dữ liệu !", ""));
                }
                else
                {
                    Rpt_BienBanSuaChuaBaoTri tri = new Rpt_BienBanSuaChuaBaoTri();
                    try
                    {
                        tri.Subreports[1].SetDataSource(dataPrintDeXuat);
                        tri.Subreports[0].SetDataSource(modGeneral.H_DATACOMPANY);
                        tri.SetDataSource(dataPrintBienBan);
                        if (modGeneral.H_LANGUAGE == "VIET")
                        {
                            tri.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                        }
                        else
                        {
                            tri.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                        }
                        tri.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS);
                        tri.SetParameterValue(2, modGeneral.Tranlated("M\x00e3 số thuế", "") + ": " + modGeneral.H_TAXCODE);
                        tri.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                        tri.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                        tri.SetParameterValue(5, modGeneral.Tranlated("Hotline", "") + ": " + modGeneral.H_HOTLINE);
                        tri.SetParameterValue(6, modGeneral.Tranlated("Email", "") + ": " + modGeneral.H_EMAIL);
                        tri.SetParameterValue(7, modGeneral.Tranlated("Website", "") + ": " + modGeneral.H_WEBSITE);
                        tri.SetParameterValue(8, modGeneral.Tranlated("BI\x00caN BẢN SỬA CHỮA BẢO TR\x00cc THIẾT BỊ", ""));
                        tri.SetParameterValue(9, LVYModule.Date2Letter(LVYModule.Char2Date(bi.NgayChungTu)));
                        tri.SetParameterValue(10, modGeneral.Tranlated("Số chứng từ", "") + ": " + bi.SoChungTu);
                        MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = tri;
                        MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                        MyProject.Forms.Frm_ViewReport.ShowDialog();
                        if (Form.ActiveForm != null)
                        {
                            Form.ActiveForm.Cursor = Cursors.Default;
                        }
                    }
                    catch (Exception exception1)
                    {
                        ProjectData.SetProjectError(exception1);
                        Exception exception = exception1;
                        if (Form.ActiveForm != null)
                        {
                            Form.ActiveForm.Cursor = Cursors.Default;
                        }
                        MessageBox.Show(exception.Message.ToString());
                        ProjectData.ClearProjectError();
                    }
                }
            }
        }

        internal virtual ADVObjects AdvKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvKhachHang = value;
            }
        }

        internal virtual ComboBox CboTinhTrang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboTinhTrang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboTinhTrang_SelectedIndexChanged);
                if (this._CboTinhTrang != null)
                {
                    this._CboTinhTrang.SelectedIndexChanged -= handler;
                }
                this._CboTinhTrang = value;
                if (this._CboTinhTrang != null)
                {
                    this._CboTinhTrang.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual CheckBox CKTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKTuNgay = value;
            }
        }

        internal virtual Button CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual Button CmdBanGiao
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdBanGiao;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdBanGiao_Click);
                if (this._CmdBanGiao != null)
                {
                    this._CmdBanGiao.Click -= handler;
                }
                this._CmdBanGiao = value;
                if (this._CmdBanGiao != null)
                {
                    this._CmdBanGiao.Click += handler;
                }
            }
        }

        internal virtual Button CmdKiemTra
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdKiemTra;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdKiemTra_Click);
                if (this._CmdKiemTra != null)
                {
                    this._CmdKiemTra.Click -= handler;
                }
                this._CmdKiemTra = value;
                if (this._CmdKiemTra != null)
                {
                    this._CmdKiemTra.Click += handler;
                }
            }
        }

        internal virtual Button CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdPrint_Click);
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click -= handler;
                }
                this._CmdPrint = value;
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click += handler;
                }
            }
        }

        internal virtual Button CmdRefesh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdRefesh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdRefesh_Click);
                if (this._CmdRefesh != null)
                {
                    this._CmdRefesh.Click -= handler;
                }
                this._CmdRefesh = value;
                if (this._CmdRefesh != null)
                {
                    this._CmdRefesh.Click += handler;
                }
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label19
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label19;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label19 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual Panel Panel2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel2 = value;
            }
        }

        internal virtual DateTimePicker TxtDenNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDenNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDenNgay = value;
            }
        }

        internal virtual DateTimePicker TxtTuNgay
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTuNgay;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTuNgay = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSlist
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSlist;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._VSlist = value;
            }
        }
    }
}

